package com.zhou.dao;

import com.github.pagehelper.Page;
import com.zhou.pojo.CheckGroup;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface CheckGroupMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CheckGroup record);

    Page<CheckGroup> pageQuery(@Param("value") String queryString);

    int insertSelective(CheckGroup checkGroup);

    CheckGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CheckGroup checkGroup);

    int updateByPrimaryKey(CheckGroup checkGroup);

    void setCheckGroupAndCheckItem(HashMap<String, Integer> map);

    void deleteAssociation(Integer id);

    List<Integer> findCheckItemIdsByCheckGroupId(Integer id);

    List<CheckGroup> findAll();

    Long findCountByCheckGroupId(@Param("checkgroup_id") Integer id);
}